package com.example.viewmodelstudio.databindingAdapter;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;

import android.os.Bundle;

import com.example.viewmodelstudio.R;
import com.example.viewmodelstudio.databinding.ActivityMain8Binding;

public class MainActivity8 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main8);
        ActivityMain8Binding activityMain8Binding = DataBindingUtil.setContentView(this, R.layout.activity_main8);
        activityMain8Binding.setNetworkImage("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F201609%2F13%2F20160913162847_tCZnR.thumb.400_0.jpeg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1633584033&t=73366561ee4ddcb69c0a9d1edb3229b2");
        activityMain8Binding.setResImage(R.mipmap.icon_headle);
    }
}